<%--
  Created by IntelliJ IDEA.
  User: chen3
  Date: 2021-07-28
  Time: 14:08
  To change this template use File | Settings | File Templates.
--%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>跳转页面</title>
    <script src="${pageContext.request.contextPath}/jquery/jquery-3.3.1.js"></script>
</head>
<body>
    <div align="center" style="line-height: 200px;font-size: 50px;color: #0f9ae0">
        <p>
            你没有权限, <span style="color: red" id="time">4</span> 后跳转回原页面,请稍后！
            <br>
            <a href="${pageContext.request.contextPath}/index.jsp">立即跳转</a>
        </p>
    </div>
    <script>
        var PageInfo = '${pageContext.request.contextPath}/index.jsp';
        var i=4;
        var interval = setInterval("timeout()",1000);
        setTimeout(function () {
            location.href = PageInfo;
        },4000);
        function timeout() {
            i--;
            $('#time').text(i);
        }
    </script>
</body>
</html>
